package com.adb.indian.rto;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

import com.adb.indian.rto.ui.StatesActivity;
import com.adb.indian.rto.utility.Const;
import com.adb.indian.rto.utility.Log;

public class SplashActivity extends Activity {
	
	private final String TAG = SplashActivity.class.getCanonicalName();
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
    	super.onCreate(savedInstanceState);
    	requestWindowFeature(Window.FEATURE_NO_TITLE);
    	getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
    	
        setContentView(R.layout.activity_splash);
        Const.CONTEXT = SplashActivity.this;
        startActivity(new Intent(SplashActivity.this,StatesActivity.class));
    }
    
    @Override
    protected void onStart() {
    	super.onStart();
    	Log.debug(TAG,"onStart");
    }
    
    @Override
    protected void onResume() {
    	super.onResume();
    	Log.debug(TAG,"onResume");
    }
    
    @Override
    protected void onPause() {
    	super.onPause();
    	Log.debug(TAG,"onPause");
    }
    
    @Override
    protected void onDestroy() {
    	super.onDestroy();
    	Log.debug(TAG,"onDestroy");
    }
    
}
